package com.shop.admin.validate.category;

import com.shop.common.validator.annotation.IDMust;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 课程分类参数
 * @author DragonDean
 */
@Data
@ApiModel("课程分类更新参数")
public class CategeryUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "")
    private Integer id;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "分类名称")
    private String name;

    @ApiModelProperty(value = "封面图")
    private String cover;

    @ApiModelProperty(value = "背景色")
    private String background;

    @ApiModelProperty(value = "文字颜色")
    private String color;
}
